import {createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  { path: "/login", component: () => import("/src/views/pages/login.vue") },
  { path: "/", redirect: "/login" },

  { path: "/*", redirect: "/login" },
  {
    path: "/home",
    name: "home",
    component: () => import("/src/views/pages/home.vue"),
  },
  {
    path: "/nengliutu",
    name: "nengliutu",
    component: () => import("/src/views/pages/nengliutu/index.vue"),
  },

  // {path: '/login',name: 'login',
  //   component: () => import('../views/login.vue')}
];

export default  createRouter({
  routes,
  history: createWebHashHistory()
})